home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / jpeg / makefile.manx < prev    next >
Makefile  |  1994-08-01  |  6KB  |  154 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Amiga systems using Manx Aztec C ver 5.x.
  4. # Use jmemname.c as the system-dependent memory manager.
  5. # Thanks to D.J. James (djjames@cup.portal.com) for this version.
  6.  
  7. # Read SETUP instructions before saying "make" !!
  8.  
  9. # The name of your C compiler:
  10. CC= cc
  11.  
  12. # You may need to adjust these cc options:
  13. # uncomment for generic 68000 code (will work on any Amiga)
  14. ARCHFLAGS= -sn
  15.  
  16. # uncomment for 68020/68030 code (faster, but won't run on 68000 CPU)
  17. #ARCHFLAGS= -c2
  18.  
  19. CFLAGS= -MC -MD -DAMIGA -DTWO_FILE_COMMANDLINE -DNEED_SIGNAL_CATCHER \
  20.     -Dsignal_catcher=_abort -DSHORTxSHORT_32 $(ARCHFLAGS) -spfam -r4
  21.  
  22. # Link-time cc options:
  23. LDFLAGS= -g
  24.  
  25. # To link any special libraries, add the necessary -l commands here.
  26. LDLIBS= -lml -lcl
  27.  
  28. # miscellaneous OS-dependent stuff
  29. # linker
  30. LN= ln
  31. # file deletion command
  32. RM= delete quiet
  33. # library (.lib) file creation command
  34. AR= lb
  35.  
  36.  
  37. # source files (independently compilable files)
  38. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  39.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  40.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  41.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  42.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  43.         jwrppm.c jwrrle.c jwrtarga.c
  44. # virtual source files (not present in distribution file, see SETUP)
  45. VIRTSOURCES= jmemsys.c
  46. # system-dependent implementations of virtual source files
  47. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  48.         jmemdosa.asm
  49. # files included by source files
  50. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  51. # documentation, test, and support files
  52. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  53. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  54.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  55.         makefile.bcc makefile.mms makefile.vms makvms.opt
  56. OTHERFILES= ansi2knr.c ckconfig.c example.c
  57. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  58. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  59.         $(OTHERFILES) $(TESTFILES)
  60. # objectfiles common to cjpeg and djpeg
  61. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  62. # compression objectfiles
  63. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  64.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  65.         jrdrle.o jrdtarga.o
  66. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  67. # decompression objectfiles
  68. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  69.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  70.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  71. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  72. # These objectfiles are included in libjpeg.lib
  73. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  74.  
  75.  
  76. all: cjpeg djpeg
  77. # By default, libjpeg.lib is not built unless you explicitly request it.
  78. # You can add libjpeg.lib to the line above if you want it built by default.
  79.  
  80.  
  81. cjpeg: $(COBJECTS)
  82.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  83.  
  84. djpeg: $(DOBJECTS)
  85.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  86.  
  87. # libjpeg.lib is useful if you are including the JPEG software in a larger
  88. # program; you'd include it in your link, rather than the individual modules.
  89. libjpeg.lib: $(LIBOBJECTS)
  90.     -$(RM) libjpeg.lib
  91.     $(AR) libjpeg.lib  $(LIBOBJECTS)
  92.  
  93. jmemsys.c:
  94.     echo You must select a system-dependent jmemsys.c file.
  95.     echo Please read the SETUP directions.
  96.     exit 1
  97.  
  98. clean:
  99.     -$(RM) *.o cjpeg djpeg libjpeg.lib core testout.*
  100.  
  101. distribute:
  102.     -$(RM) jpegsrc.tar*
  103.     tar cvf jpegsrc.tar $(DISTFILES)
  104.     compress -v jpegsrc.tar
  105.  
  106. test: cjpeg djpeg
  107.     -$(RM) testout.ppm testout.gif testout.jpg
  108.     djpeg testorig.jpg testout.ppm
  109.     djpeg -gif testorig.jpg testout.gif
  110.     cjpeg testimg.ppm testout.jpg
  111.     cmp testimg.ppm testout.ppm
  112.     cmp testimg.gif testout.gif
  113.     cmp testimg.jpg testout.jpg
  114.  
  115.  
  116. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  117. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  118. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  119. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  120. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  121. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  122. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  123. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  124. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  125. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  126. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  127. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  128. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  129. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  130. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  131. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  132. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  133. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  134. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  135. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  136. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  137. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  138. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  139. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  140. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  141. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  142. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  143. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  144. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  145. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  146. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  147. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  148. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  149. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  150. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  151. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  152. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  153. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  154.